import type { HttpRequest } from "@smithy/protocol-http";
import { stream } from "@kit.ArkTS";

/**
 * @internal
 */
export const isStreamingPayload = (request: HttpRequest): boolean =>
  request?.body instanceof stream.Readable
